import matplotlib.pyplot as plt
plt.rcParams['font.family']=['FangSong']
# 用Matplotlib画饼图
nums = [40, 10, 40, 5, 5]
labels = ['学习','吃饭','睡觉','娱乐', '思考人生']
plt.pie(x = nums, labels=labels)
plt.title("小明今日安排规划图")
plt.show()